//package com.zzj.ecology.admin.controller.system;
//
//import com.zzj.ecology.admin.controller.BaseController;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//public class SysMenuButtonController extends BaseController {
//
//    @Autowired
//    private SysMenuButtonService sysMenuButtonService;
//
////    /**
////     * 分页查询数据,带父集 parent 参数
////     * @param page
////     * @return
////     */
////    @PostMapping(value = UrlConstants.MENU_BUTTON_WITHOUT_CHILDRENS_PAGE_LIST)
////    public HttpResult findWithoutChildrensPageList(Page page) {
////        HttpResult result = sysMenuButtonService.findWithoutChildrensPageList(page);
////        return result;
////    }
////
////    /**
////     * 删除 菜单 并 删除 与 菜单 关联的 权限
////     * @param ids
////     * @return
////     */
////    @PostMapping(value = UrlConstants.MENU_BUTTON_DELETE_AND_GRANT_BY_IDS)
////    public HttpResult deleteAndGrantByIds(@RequestParam("ids[]") Integer[] ids) {
////        if (ids == null || ids.length <= 0) return HttpResult.error();
////        HttpResult result = null;
////        return result;
////    }
////
////    /**
////     * 创建 菜单 并 赋予 权限 关联
////     * @param sysMenuButton
////     * @return
////     */
////    @PostMapping(value = UrlConstants.MENU_BUTTON_CREATE_AND_GRANT)
////    public HttpResult createAndGrant(SysMenuButton sysMenuButton) {
////        HttpResult result = sysMenuButtonService.createAndGrant(sysMenuButton);
////        return result;
//////        return HttpResult.success();
////    }
////
////    /**
////     * 用户登录后，获取 用户对应的菜单
////     * @param username
////     * @return
////     */
////    @RequestMapping(value = UrlConstants.MENU_BUTTON_LIST_ROLE_BY_USERNAME)
////    public HttpResult findMenuListRoleByUsername(String username) {
////        if (StringUtils.isEmpty(username)) return HttpResult.error();
////        HttpResult result = sysMenuButtonService.findMenuListRoleByUsername(username);
////        return result;
////
////        // 服务器创建 Menu 字符
//////        List<SysMenuButton> list = (List<SysMenuButton>) result.getExtend().get(Constant.RESP_DATA_KEY);
//////        StringBuffer menus = SysMenuButtonCreator.createMenuCategory(list);
//////        System.out.println(menus.toString());
//////        return HttpResult.success().add(Constant.RESP_DATA_KEY, menus.toString());
////    }
////
////
////    /**
////     * 查询 下拉框中 展示 的所有菜单列表
////     * @return
////     */
////    @PostMapping(value = UrlConstants.MENU_BUTTON_MENU_LIST_SELECT_DISPLAY)
////    public HttpResult findMenuListSelectDisplay() {
////        HttpResult result = sysMenuButtonService.findMenuListSelectDisplay();
////        return result;
////    }
////
////    @PostMapping(value = UrlConstants.MENU_BUTTON_FIND_BY_ID)
////    public HttpResult findById(Integer id){
////        if(null == id) return HttpResult.error();
////        HttpResult result = sysMenuButtonService.findById(id);
////        return result;
////    }
////
////    /**
////     * 获取到 treeTable 所需要数据类型
////     * @param page
////     * @return
////     */
////    @RequestMapping(value = UrlConstants.MENU_BUTTON_TREETABLE_LIST)
////    public HttpResult findTreeTableList(Page page) {
////        HttpResult result = sysMenuButtonService.findTreeTableList(page);
////        //return  result.getExtend().get(Constant.RESP_LIST1_KEY);
////        return result;
////    }
////
////    /**
////     * 查询 当前用户 当前页面的 按钮权限
////     *
////     * @param menuid
////     * @param userDetails
////     * @return
////     */
////    @RequestMapping(value = UrlConstants.MENU_BUTTON_CURRPAGE_BUTTON_PERMS)
////    public HttpResult findCurrPageButtonPerms(@RequestParam String menuid, @AuthenticationPrincipal UserDetails userDetails) {
////        if (StringUtils.isEmpty(menuid)) return error();
////        String username = userDetails.getUsername();
////        String permStr = sysMenuButtonService.findCurrPageButtonPerms(Integer.parseInt(menuid), username);
////        return successData(permStr);
////    }
//
//
//
//}
